package com.uaf.vxalipaybill.feign.service.v1.write.fallback;

import org.springframework.cache.annotation.Cacheable;

import com.uaf.api.vo.req.BaseReqVo;
import com.uaf.api.vo.resp.BaseRespVo;
import com.uaf.common.json.utils.JsonUtils;
import com.uaf.common.response.utils.ResponseUtils;
import com.uaf.log.MySlf4j;
import com.uaf.vxalipaybill.api.vo.req.VxAlipayBillAuthReqVo;
import com.uaf.vxalipaybill.api.vo.resp.VxAlipayBillAuthRespVo;
import com.uaf.vxalipaybill.feign.service.v1.write.IVxAlipayBillWriteService;

/**
 * @filename VxAlipayBillWriteServiceHystrix.java
 * @description 微信支付宝账单熔断
 * @author 马庆智
 * @date 2021/9/6 12:06
 */
@Cacheable
public class VxAlipayBillWriteServiceHystrix implements IVxAlipayBillWriteService {
	/**
	 * 功能描述 微信支付宝账单授权
	 * @param reqVo 微信支付宝账单请求数据
	 * @return  vxAlipayBillAuthRespVo 返回授权状态
	 * @author 马庆智
	 * @date 2021/9/10 10:11
	 */
	@Override
	public BaseRespVo<VxAlipayBillAuthRespVo> vxAlipayAuth(BaseReqVo<VxAlipayBillAuthReqVo> reqVo) {
		MySlf4j.textError("【uaf-vxalipaybill-feign】服务【Feign】触发熔断......method:【vxAlipayAuth】, 请求报文:{0}", JsonUtils.toJson(reqVo));
		return ResponseUtils.responseFeignHystrix(null);
	}
}
